#!/usr/bin/env python
# -*- coding: utf-8 -*-
import jsonpath

a = {
    "order_ids": ["5936"]
}

r = jsonpath.jsonpath(a,"$..order_ids[0]")
print(r[0])